package com.ruoyi.system.service;

import java.util.List;
import com.ruoyi.system.domain.WorkPhoto;

/**
 * 照片表Service接口
 * 
 * @author ruoyi
 * @date 2020-04-20
 */
public interface IWorkPhotoService 
{
    /**
     * 查询照片表
     * 
     * @param id 照片表ID
     * @return 照片表
     */
    public WorkPhoto selectWorkPhotoById(Long id);

    /**
     * 查询照片表列表
     * 
     * @param workPhoto 照片表
     * @return 照片表集合
     */
    public List<WorkPhoto> selectWorkPhotoList(WorkPhoto workPhoto);

    /**
     * 新增照片表
     * 
     * @param workPhoto 照片表
     * @return 结果
     */
    public int insertWorkPhoto(WorkPhoto workPhoto);

    /**
     * 修改照片表
     * 
     * @param workPhoto 照片表
     * @return 结果
     */
    public int updateWorkPhoto(WorkPhoto workPhoto);

    /**
     * 批量删除照片表
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteWorkPhotoByIds(String ids);

    /**
     * 删除照片表信息
     * 
     * @param id 照片表ID
     * @return 结果
     */
    public int deleteWorkPhotoById(Long id);


    List<WorkPhoto> selectWorkPhotoByFaultId(Long id);

    void deleteWorkPhotoByFaultId(Long id);

    void deleteWorkPhotoByFaultPhoto(Long id);

    List<WorkPhoto> selectWorkPhotoByByFinishId(Long id);

    Long insertWorkPhotoByIds(WorkPhoto workPhoto);

    int insertWorkPhotoByFault(Long ids1, Long ids2);

    void insertWorkPhotobyWorkId(Long username, Long id);

    void deleteWorkPhotoByNothing(Long id1);
}
